<%@page import="com.wonders.qxmanager.model.*"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>显示所有日志列表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="css/style.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	
	

  </head>
  
  <body topmargin="0" class="placeul">
  
    <div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="logsList">日志列表</a></li>
    </ul>

    <ul class="placeul">
    	<li>用户工号:<%=session.getAttribute("userid") %></li>
    </ul>
    </div>
    	<fieldset>
			<legend>
				日志列表
			</legend>
    	<table width="80%" border="5"  align="center" cellspacing="12" cellpadding="10" bordercolor="black">
    		<tr style="font-weight: 20">
    			<td>员工工号</td>
    			<td>项目ID</td>
    			<td>标题</td>
    			<td>日志内容</td>
    			<td>日志备注</td>
    		</tr>
    		<c:forEach var="list" items="${list}">
    			<tr>
    				<td>${list.userId}</td>
    				<td>${list.id}</td>
    				<td>${list.what}</td>
    				<td>${list.whatRime}</td>
    				<td>${list.whatResult}</td>
    				<td><a href="checkLogs?logid=${list.logid}">修改|</a><a href="deleteLogs?logid=${list.logid}">删除</a></td>
    				
    			</tr>
    		</c:forEach>
    			<%--<%
    			List<Logs> list = (List<Logs>)session.getAttribute("list");
    			for(Logs logs:list){
    			%>
    			<tr>
    				<td><%=logs.getId() %></td>
    				<td><%=logs.getProjectid()%></td>
    				<td><%=logs.getTitle() %></td>
    				<td><%=logs.getContent() %></td>
    				<td><%=logs.getProgressing() %></td>
    				<td><a href="checkLogs?logid=<%=logs.getId() %>">修改|</a><a href="deleteLogs?logid=<%=logs.getId() %>">删除</a></td>
    			</tr>
    			<%
    			}
    			%>
    	--%></table>
    	</fieldset>
  </body>
</html>
